Accusoft.PdfXpress7.ActiveX
Convert PDF to Image

To render a page of a PDF document to bitmap, dib, encapsulated postscript, or data, use the "RenderPage" methods: RenderPageOptionsToBitmap, RenderPageOptionsToDib, RenderPageOptionsToEPS, and RenderPageOptionsToData.

PDF Xpress™ does not offer viewing capabilities of images. ImagXpress® can be used in conjunction with PDF Xpress to provide image decompression, viewing, and format conversion.

VB Example
Copy Code
'This code demonstrates converting a PDF to an image 
On Error GoTo error
Dim imagXpress1 As New ImagXpress
Dim pdfXpress1 As  New PdfXpress
pdfXpress1.Initialize
pdfxpress1.RaiseExceptions = True
Dim document As New PdfDocument
document. SetParentControl pdfXpress1
document.OpenDocument "C:\test.pdf",""
Dim renderOpts As New RenderOptions
renderOpts.ProduceDibSection = False
imagXpress1.hDIB = document. RenderPageOptionsToDib(0, renderOpts)
.
.
.
GoTo finish
error:
MsgBox Err.Description
finish:

Set document = Nothing
pdfxpress1.Terminate
Set pdfxpress1= Nothing
See Also

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback